<template>
  <div id="login">
    <div class="login-box">
      <!-- 头像部分 -->
      <login-avatar/>
      <!-- 主体部分 -->
      <login-form/>
    </div>
  </div>
</template>

<script>
import LoginForm from './childrenCpns/LoginForm.vue'
import LoginAvatar from './childrenCpns/LoginAvatar.vue'

export default {
  name: 'Login',
  components: {
    LoginForm,
    LoginAvatar
  }
}
</script>

<style scoped lang="less">
#login {
  background-color: #2b4b6b;
  height: 100%;
}
.login-box {
  width: 450px;
  height: 300px;
  background-color: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
}
</style>
